Installing packages into 'C:/Users/resha/AppData/Local/R/win-library/4.3'
(as 'lib' is unspecified)
Warning: cannot remove prior installation of package 'lubridate'
Warning in file.copy(savedcopy, lib, recursive = TRUE): problem copying
C:\Users\resha\AppData\Local\R\win-library\4.3\00LOCK\lubridate\libs\x64\lubridate.dll
to
C:\Users\resha\AppData\Local\R\win-library\4.3\lubridate\libs\x64\lubridate.dll:
Permission denied
Warning: restored 'lubridate'
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr     1.1.3     ✔ readr     2.1.4
✔ forcats   1.0.0     ✔ stringr   1.5.0
✔ ggplot2   3.4.3     ✔ tibble    3.2.1
✔ lubridate 1.9.3     ✔ tidyr     1.3.0
✔ purrr     1.0.2     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
here() starts at C:/Users/resha/Documents/RESH/Data Science Master's/Intro to Data Science/practicals
package 'tidyverse' successfully unpacked and MD5 sums checked
package 'here' successfully unpacked and MD5 sums checked
package 'lubridate' successfully unpacked and MD5 sums checked
package 'leaflet' successfully unpacked and MD5 sums checked
package 'readxl' successfully unpacked and MD5 sums checked
package 'XML' successfully unpacked and MD5 sums checked
package 'rmarkdown' successfully unpacked and MD5 sums checked
package 'hexbin' successfully unpacked and MD5 sums checked
package 'lintr' successfully unpacked and MD5 sums checked
package 'styler' successfully unpacked and MD5 sums checked
package 'gapminder' successfully unpacked and MD5 sums checked
package 'gridExtra' successfully unpacked and MD5 sums checked
package 'hms' successfully unpacked and MD5 sums checked
package 'RColorBrewer' successfully unpacked and MD5 sums checked
package 'cowsay' successfully unpacked and MD5 sums checked
package 'kableExtra' successfully unpacked and MD5 sums checked
package 'janitor' successfully unpacked and MD5 sums checked
package 'ggrepel' successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\resha\AppData\Local\Temp\RtmpKuSupL\downloaded_packages
read_csv(here("data", "mcdonalds_menu.csv"))
Rows: 260 Columns: 24
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr  (3): Category, Item, Serving Size
dbl (21): Calories, Calories from Fat, Total Fat, Total Fat (% Daily Value),...

ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# A tibble: 260 × 24
   Category  Item        `Serving Size` Calories `Calories from Fat` `Total Fat`
   <chr>     <chr>       <chr>             <dbl>               <dbl>       <dbl>
 1 Breakfast Egg McMuff… 4.8 oz (136 g)      300                 120          13
 2 Breakfast Egg White … 4.8 oz (135 g)      250                  70           8
 3 Breakfast Sausage Mc… 3.9 oz (111 g)      370                 200          23
 4 Breakfast Sausage Mc… 5.7 oz (161 g)      450                 250          28
 5 Breakfast Sausage Mc… 5.7 oz (161 g)      400                 210          23
 6 Breakfast Steak & Eg… 6.5 oz (185 g)      430                 210          23
 7 Breakfast Bacon, Egg… 5.3 oz (150 g)      460                 230          26
 8 Breakfast Bacon, Egg… 5.8 oz (164 g)      520                 270          30
 9 Breakfast Bacon, Egg… 5.4 oz (153 g)      410                 180          20
10 Breakfast Bacon, Egg… 5.9 oz (167 g)      470                 220          25
# ℹ 250 more rows
# ℹ 18 more variables: `Total Fat (% Daily Value)` <dbl>,
#   `Saturated Fat` <dbl>, `Saturated Fat (% Daily Value)` <dbl>,
#   `Trans Fat` <dbl>, Cholesterol <dbl>, `Cholesterol (% Daily Value)` <dbl>,
#   Sodium <dbl>, `Sodium (% Daily Value)` <dbl>, Carbohydrates <dbl>,
#   `Carbohydrates (% Daily Value)` <dbl>, `Dietary Fiber` <dbl>,
#   `Dietary Fiber (% Daily Value)` <dbl>, Sugars <dbl>, Protein <dbl>, …
Cat image
Cat image

Lists

Numbered list

  1. Item 1
  2. Item 2
  3. Item 3

Bullet points

  • Item 1
  • Item 2

A list whose first level is numbered but whose second level is not

  1. Item 1
  2. Item 2
  3. Item 3
    • Item 3a
    • Item 3b

Examples of text

Bold

BOLD

Italic Text

ITALICS

Verbatim Code

1 + 1
[1] 2

Text with superscripts

superscript

1.2 Exercise

x <- 42
x
log(-1)
Warning in log(-1): NaNs produced
[1] 42
[1] NaN